package org.itboys.mobile.entity.mongo;


import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 包名：com.hz.sunday.tianjie.entity.mongo
 * 作者 : 江雄
 * Email: empty90911@126.com
 * 时间：2016年3月3日 下午4:10:06 
 * 描述:收藏：商品/门店/小区。此类只做过渡查询使用，例如：查询用户的小区，实际输出的是list<TianJieVillage>的集合
 *
 */
@Entity(value="TianJieCollection", noClassnameStored=true)
public class TianJieCollection extends BaseMongoEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 75558469973658604L;
	private Long memberId;
	private Integer type;//1商品，2门店，3小区
	private Long otherId;//被收藏的者的ID,例如商品ID.
	
	
	public TianJieCollection(){
		
	}
	public TianJieCollection(Long memberId, Integer type,
			Long otherId) {
		
		this.memberId = memberId;
		this.type = type;
		this.otherId = otherId;
		
	}
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Long getOtherId() {
		return otherId;
	}
	public void setOtherId(Long otherId) {
		this.otherId = otherId;
	}
	
	
	
	
	
	
	

}
